package com.xt.purchasingsystem;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @author: 老姚
 * Date:  2020/5/22 16:56
 */
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)//取消数据源的自动创建
@EnableDiscoveryClient
@EnableFeignClients
//服务器端Hystrix启动注解  用来服务熔断
@EnableCircuitBreaker
//客户端开启Hystrix
@EnableHystrix
@MapperScan("com.xt.purchasingsystem.mapper")
public class ErpManagementMain {
    public static void main(String[] args) {

        SpringApplication.run(ErpManagementMain.class, args);
        }
}
